# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=mp3val
pkgver=0.1.8
pkgrel=1
pkgdesc="Tool for MPEG Audio File (MP3, etc) validation and fixing"
url="https://mp3val.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
source="$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/mp3val/mp3val-$pkgver-src.tar.gz"
builddir="$srcdir/$pkgname-$pkgver-src/"

build() {
	make -f Makefile.linux
}

check() {
	echo Check: "$(./mp3val -v)"
}

package() {
	install -Dm755 ./mp3val -t "$pkgdir"/usr/bin
}

sha512sums="
62371453be53840fb0f0d87c9fcf9cbd6f5c8ae107e529f0cb6b8190ef9e7ebf564bb080c9d0a6adc3b5450673e70b5f4343dee82c1e6400750935cccebc2604  mp3val-0.1.8.tar.gz
"
